﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Irandeb4.Models
{
    public class Product
    {
        public int ProductId { get; set; }

        public int SuppliesId { get; set; }        
                
        [Required(ErrorMessage = "por favor introduzca un nombre")]
        [StringLength(30, MinimumLength = 3, ErrorMessage = "el nombre debe ser de minimo 3 cararteres y maximo 30")]
        public string Name { get; set; }

        [Required(ErrorMessage = "por favor introduzca tipo")]
        [StringLength(30, MinimumLength = 3, ErrorMessage = "el tipo debe ser de minimo 3 cararteres y maximo 20")]
        public string Type { get; set; }
        

        [StringLength(25, MinimumLength = 3, ErrorMessage = "la descripción debe ser de minimo 3 cararteres y maximo 25")]
        public string Description { get; set; }

        //public virtual EspecificProductSuppliers Supplies { get; set; }
    }
}
